home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / Library / Transition.as < prev   
Text File  |  2007-09-27  |  933b  |  42 lines

  1. class Library.Transition extends Library.State
  2. {
  3.    static var TRANSITION_SCREEN_COVERED = 1;
  4.    static var TRANSITION_COMPLETE = 2;
  5.    function Transition(__mcRef)
  6.    {
  7.       super(__mcRef);
  8.       this.setState("Hidden");
  9.    }
  10.    function doStart()
  11.    {
  12.       this.setState("In");
  13.    }
  14.    function doDestroy()
  15.    {
  16.    }
  17.    function doIn()
  18.    {
  19.       if(this.isStateComplete())
  20.       {
  21.          this.oListener.onTransitionEvent(Library.Transition.TRANSITION_SCREEN_COVERED,this);
  22.          this.setState("Out");
  23.       }
  24.    }
  25.    function doOut()
  26.    {
  27.       if(this.isStateComplete())
  28.       {
  29.          this.oListener.onTransitionEvent(Library.Transition.TRANSITION_COMPLETE,this);
  30.          this.setState("Hidden");
  31.       }
  32.    }
  33.    function set Listener(_o)
  34.    {
  35.       this.oListener = _o;
  36.    }
  37.    function doLoadStateAction()
  38.    {
  39.       this.mcRef.mcState.btnBlock.useHandCursor = false;
  40.    }
  41. }
  42.